﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace DTcms.Core.Model.Models
{
    /// <summary>
    /// 站点域名
    /// </summary>
    public class SiteDomain
    {
        [Display(Name = "自增ID")]
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [Display(Name = "所属站点")]
        [ForeignKey("Site")]
        public int SiteId { get; set; }

        [Display(Name = "站点域名")]
        [Required]
        [StringLength(128)]
        public string Domain { get; set; }

        [Display(Name = "备注说明")]
        [StringLength(512)]
        public string Remark { get; set; }

        /// <summary>
        /// 站点信息
        /// </summary>
        public Sites Site { get; set; }
    }
}
